function loading_div(h1, h2, h3, page_num) {
	var height_arr = [h1, h2, h3];
	var max_height = Math.max.apply(null, height_arr);
	if (max_height) {
		max_height = -1 * (1000 + 20 - max_height - 10) + 10;
	} else {
		max_height = -640;
	}
	$(".loading_div").css("margin", max_height + "px auto 15px");
	if (page_num % 5 == 1) {
		$(".pageNavWrapper").css("display", "none");
	}
}
if (is_iPad()) {
	$('.findClass').css('display', 'block');
}
function is_iPad() {
	var ua = navigator.userAgent.toLowerCase();
	if (ua.match(/iPad/i) == "ipad") {
		return true;
	} else {
		return false;
	}
}
function seledate() {
	$('#findnew').removeClass('current');
	$('#findtop').addClass('current');
}

$(function() {
    var $container = $("#love_content");
    $container.masonry({
        "itemSelector": ".masonryBrick",
        "columnWidth": 120
    });
});